package lifeDomain;

import java.util.Calendar;


public class Spot
{
    public Spot()
    {
        gps = -1;
        wifi = -1;
        lat = -1;
        lon = -1;
        accuracy = 0;
        speed = 0;
        type = SPOT;
        cell_lat=-1;
        cell_lon=-1;
    }
    public int compareTo(Spot sp)
    {
    	if(gps != sp.gps || wifi != sp.wifi || lat != sp.lat ||
    			lon != sp.lon || accuracy != sp.accuracy || speed != sp.speed ||
    			type != sp.type || (time.compareTo(sp.time) != 0 || cell_lat != sp.cell_lat
    			|| cell_lon != sp.cell_lon))
    	{
    		return 1;
    	}
    	return 0;
    }
    public int gps;
    public int wifi;
    public double lat;
    public double lon;
    public double cell_lat;
    public double cell_lon;
    public double accuracy;
    public double speed;
    public Calendar time;
    public int type;

    public static final int SPOT = 1;
    public static final int LSPOT = 2;
    public static final int VSPOT = 3;

}